import fw from '../framework.js'
function create(programData,success,error){
    fw.ajax('program/v2/create', programData).then(res => {
        if (res.code == 0) {
            success(res.data);
        }else{
            error(res);
        }
    });
}

function update(programData,success,error){
    fw.ajax('program/v2/update', programData).then(res => {
        if (res.code == 0) {
            success(res.data);
        }else{
            error(res);
        }
    });
}
module.exports = {
    create:create,
    update:update
}